import requests, time
payload = {"id": 2, "username": "bqb", "value": 12.34}
requests.post("http://127.0.0.1:5000/api/data", json=payload).raise_for_status()